//
//  ZLPlusButton.swift
//  新浪微博
//
//  Created by 朱玉龙 on 16/10/6.
//  Copyright © 2016年 朱玉龙. All rights reserved.
//

import UIKit

class ZLPlusButton: UIButton {

    override init(frame: CGRect) {
        super.init(frame: frame)
        titleLabel?.textAlignment = .center
        titleLabel?.font = UIFont.systemFont(ofSize: 15)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func titleRect(forContentRect contentRect: CGRect) -> CGRect {
        
        return CGRect(x: 0, y: btnW, width: btnW, height: btnH - btnW)
    }
    
    override func imageRect(forContentRect contentRect: CGRect) -> CGRect {
        return CGRect(x: 0, y: 0, width: btnW, height: btnW)
    }
    
}
